﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageUser.master" AutoEventWireup="true" CodeFile="Chi_tiet_sp.aspx.cs" Inherits="Chi_tiet_sp" Title="Chi tiết sản phẩm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style6
        {
            width: 100%;
        }
        .style7
        {
            width: 97px;
        }
        .style8
        {
            color: #0000FF;
            font-size: 14pt;
        }
        .style9
        {
            width: 97px;
            color: #FF6666;
            font-weight: bold;
        }
        .style10
        {
            color: #3366FF;
        }
        .style11
    {
        width: 76px;
    }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style6" 
        style="border: 1px solid #C0C0C0; width: 100%; " 
        align="center">
    <tr>
        <td colspan="2" 
                
                
            
            style="margin: 0px; padding: 0px; height: 27px; background-color: #ff9933; color: #FFFFFF; font-weight: bold; font-family: arial, Helvetica, sans-serif; width: 620px;" 
            align="center">
                THÔNG TIN CHI TIẾT VỀ SẢN PHẨM</td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:DataList ID="DataList1" runat="server" DataKeyField="TenSp" 
                    DataSourceID="SqlDataSource1" Width="100%">
                <ItemTemplate>
                    <table class="style6" cellpadding="5" cellspacing="7" style="border-width: 2px">
                        <tr>
                            <td align="center" class="style7" style="width: 35%" rowspan="2">
                                <asp:Image ID="Image3" runat="server" Height="150px" 
                                    ImageUrl='<%# Eval("Hinh") %>' ToolTip='<%# Eval("TenSp") %>' Width="120px" />
                            </td>
                            <td valign="bottom">
                                Tên :<b><asp:Label ID="TenSpLabel" runat="server" Font-Bold="True" 
                                    Font-Size="12pt" ForeColor="#0066FF" Text='<%# Eval("TenSp") %>' 
                                    ToolTip='<%# Eval("TenSp") %>' />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <span class="style8"><b>Giá :</b></span>
                                <asp:Label ID="GiaLabel" runat="server" 
                                    style="font-weight: 700; color: #FF0000; font-size: 14pt" 
                                    Text='<%# Eval("Gia","{0:#,##0} VND") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        &nbsp;</td>
                            <td class="style10">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Kiểu dáng
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="KieuDangLabel" runat="server" Text='<%# Eval("KieuDang") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Năm sản xuất
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="NamSXLabel" runat="server" Text='<%# Eval("NamSX") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                   
                                        Chơi nhạc MP3
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="MP3Label" runat="server" Text='<%# Eval("MP3") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Camera
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="CameraLabel" runat="server" Text='<%# Eval("Camera") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Bluetooth
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="BluetoothLabel" runat="server" Text='<%# Eval("Bluetooth") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Xem phim
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="XemPhimLabel" runat="server" Text='<%# Eval("XemPhim") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Hổ trợ GPRS
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="GPRSLabel" runat="server" Text='<%# Eval("GPRS") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        FMRadio
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="FMRadioLabel" runat="server" Text='<%# Eval("FMRadio") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                   
                                        Hổ trợ wifi
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="WifiLabel" runat="server" Text='<%# Eval("Wifi") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Hổ trợ 3G
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="G3Label" runat="server" Text='<%# Eval("G3") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Xem tivi
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="XemTiViLabel" runat="server" Text='<%# Eval("XemTiVi") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Game
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="GameLabel" runat="server" Text='<%# Eval("Game") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Loa ngoài
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="LoaNgoaiLabel" runat="server" Text='<%# Eval("LoaNgoai") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Băng Tần
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="BangTanLabel" runat="server" Text='<%# Eval("BangTan") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    
                                        Bộ nhớ trong
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="BoNhoTrongLabel" runat="server" 
                                        Text='<%# Eval("BoNhoTrong") %>' Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                   
                                        Thẻ nhớ
                                </td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="TheNhoLabel" runat="server" Text='<%# Eval("TheNho") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    Nhạc chuông</td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="NhacChuongLabel" runat="server" 
                                        Text='<%# Eval("NhacChuong") %>' Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                        <tr>
                            <td class="style9" style="padding-left: 60px">
                                    Bảo hành</td>
                            <td class="style10">
                                <b>
                                <asp:Label ID="BaoHanhLabel" runat="server" Text='<%# Eval("BaoHanh") %>' 
                                    Font-Italic="True" />
                                </b>
                            </td>
                        </tr>
                    </table>
                    <br />
                </ItemTemplate>
            </asp:DataList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:DIEN_THOAIConnectionString %>" 
                    SelectCommand="SELECT [TenSp], [KieuDang], [NamSX], [Gia], [MP3], [Hinh], [Camera], [Bluetooth], [XemPhim], [GPRS], [Wifi], [G3], [FMRadio], [XemTiVi], [Game], [LoaNgoai], [BangTan], [BoNhoTrong], [TheNho], [NhacChuong], [BaoHanh] FROM [SAN_PHAM] WHERE ([TenSp] = @TenSp)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="TenSp" QueryStringField="ten" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>
                &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
    <tr>
        <td align="center" colspan="2" 
            style="margin: 0px; padding: 0px; height: 27px; background-color: #ff9933; color: #FFFFFF; font-weight: bold; font-family: arial, Helvetica, sans-serif">
                SẢN PHẨM CÙNG LOẠI</td>
    </tr>
    <tr>
        <td colspan="2">
                <asp:DataList ID="DataList2" runat="server" DataKeyField="TenSp" 
                    DataSourceID="SqlDataSource2" RepeatColumns="3" Width="100%">
                    <ItemTemplate>
                        <table cellpadding="2" cellspacing="2" class="style6" style="width: 100%;">
                            <tr>
                                <td align="center" class="style11" rowspan="3">
                                   
                                    <asp:Image ID="Image3" runat="server" Height="90px" 
                                        ImageUrl='<%# Eval("Hinh") %>' ToolTip='<%# Eval("TenSp") %>' Width="80px" />
                                  
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="padding-left: 7px">                                   
                                    <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Size="11pt" 
                                        ForeColor="#0066FF" 
                                        NavigateUrl='<%# "Chi_tiet_sp.aspx?ten=" + Eval("TenSp")+"&ma="+Eval("TenHang") %>' 
                                        Text='<%# Eval("TenSp") %>' ToolTip='<%# Eval("TenSP") %>'></asp:HyperLink>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 7px">
                                    Giá :
                                    <asp:Label ID="lblgiasp" runat="server" Font-Bold="False" Font-Size="10pt" 
                                        ForeColor="Red" Text='<%# Eval("Gia","{0:#,##0} VND") %>' 
                                        ToolTip='<%# Eval("Gia") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="style11">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <br />
                    </ItemTemplate>
                </asp:DataList>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="Data Source=.;Initial Catalog=DIEN_THOAI;Integrated Security=True" 
                    ProviderName="System.Data.SqlClient" 
                    
                    SelectCommand="SELECT * FROM [SAN_PHAM] WHERE (([TenHang] = @TenHang) AND ([TenSp] &lt;&gt; @TenSp))">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="TenHang" QueryStringField="ma" Type="String" />
                        <asp:QueryStringParameter Name="TenSp" QueryStringField="ten" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>
                &nbsp;</td>
        <td>
                &nbsp;</td>
    </tr>
</table>
</asp:Content>

